﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">	<head>		<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>		<title>Google Maps GPX Test - async</title>		<style type="text/css">			v\:* {				behavior:url(#default#VML);			}		</style>		<!-- Make the document body take up the full screen -->		<style type="text/css">			html, body {width: 100%; height: 100%}			body {margin-top: 0px; margin-right: 0px; margin-left: 0px; margin-bottom: 0px}		</style>
        <!-- Replace the key in the line below with an API key for your site.  You can get one here http://www.google.com/apis/maps/signup.html -->
		<script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAq5ghvt61uNSMQzLcUm8S2hRi_j0U6kJrkFvY4-OX2XYmEAa76BRIHmArYiDoX8rJtj7E2nGF-LWUJg" type="text/javascript"></script>		<script src="../../loadgpx.js" type="text/javascript"></script>		<script type="text/javascript">
		//<![CDATA[
		var MyMap;
		function LoadGPXFileIntoGoogleMap(map, filename)		{			// Remove any existing overlays from the map.			map.clearOverlays();			var request = GXmlHttp.create();			request.open("GET", filename, true);			request.onreadystatechange = function()			{				if (request.readyState == 4)				{					parser = new GPXParser(request.responseXML, map);					parser.SetTrackColour("#ff0000");					// Set the track line colour					parser.SetTrackWidth(5);							// Set the track line width					parser.SetMinTrackPointDelta(0.001);				// Set the minimum distance between track points					parser.CenterAndZoom(request.responseXML, G_NORMAL_MAP); // Center and Zoom the map over all the points.					parser.AddTrackpointsToMap();						// Add the trackpoints					parser.AddWaypointsToMap();							// Add the waypoints				}			}			request.send(null);		}
		function onLoad()		{			MyMap = new GMap2(document.getElementById("map"));			MyMap.addControl(new GLargeMapControl());			MyMap.addControl(new GMapTypeControl());			LoadGPXFileIntoGoogleMap(MyMap, "pocotrail.xml");		}		//]]>		</script>	</head>	<body onload="onLoad()">		<div id="map" style="width: 100%; height: 100%;"></div>	</body></html>